package com.quanyan.alipay.protocal;

import com.quanyan.alipay.config.AlipayConfig;
import com.quanyan.alipay.util.UtilDate;

/**
 * Created by zijun.song on 2015/9/14.
 */
public class AliWithdrawalsReqData {

    private String service = "batch_trans_notify"; //接口名称。固定值。

    private String partner;//签约的支付宝账号对应的支付宝唯一用户号。以2088开头的16位纯数字组成。

    private String _input_charset;//商户网站使用的编码格式，固定为utf-8。

    private String sign_type;

    private String sign; //参数签名.

    private String notify_url;

    private String account_name = "北京泉眼网络科技有限公司";

    private String detail_data; //付款详细数 据

    private String batch_no; //批量付款批 次号

    private int batch_num = 0; //付款总笔数

    private String batch_fee;  //付款总金额

    private String email; //付款账号

    private String pay_date = UtilDate.getDateFormatter(); //支付日期

    private String buyer_account_name;

    private String extend_param;


    public AliWithdrawalsReqData(String detail_data, String batch_no,
                                 String batch_fee, int batch_num, AlipayConfig alipayConfig) {
        //it_b_pay
        this.partner = alipayConfig.getPartner();
        this._input_charset = alipayConfig.getInput_charset();
        this.sign_type = alipayConfig.getSign_type();
        this.notify_url = alipayConfig.getWithdraw_notify_url();
        this.email = alipayConfig.getSeller();
        this.buyer_account_name = alipayConfig.getSeller();
        this.detail_data = detail_data;
        this.batch_no = batch_no;
        this.batch_fee = batch_fee;
        this.batch_num = batch_num;
    }


    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getPartner() {
        return partner;
    }

    public void setPartner(String partner) {
        this.partner = partner;
    }

    public String get_input_charset() {
        return _input_charset;
    }

    public void set_input_charset(String _input_charset) {
        this._input_charset = _input_charset;
    }

    public String getSign_type() {
        return sign_type;
    }

    public void setSign_type(String sign_type) {
        this.sign_type = sign_type;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }

    public String getAccount_name() {
        return account_name;
    }

    public void setAccount_name(String account_name) {
        this.account_name = account_name;
    }


    public String getBatch_no() {
        return batch_no;
    }

    public void setBatch_no(String batch_no) {
        this.batch_no = batch_no;
    }

    public int getBatch_num() {
        return batch_num;
    }

    public void setBatch_num(int batch_num) {
        this.batch_num = batch_num;
    }

    public String getBatch_fee() {
        return batch_fee;
    }

    public void setBatch_fee(String batch_fee) {
        this.batch_fee = batch_fee;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPay_date() {
        return pay_date;
    }

    public void setPay_date(String pay_date) {
        this.pay_date = pay_date;
    }

    public String getBuyer_account_name() {
        return buyer_account_name;
    }

    public void setBuyer_account_name(String buyer_account_name) {
        this.buyer_account_name = buyer_account_name;
    }

    public String getExtend_param() {
        return extend_param;
    }

    public void setExtend_param(String extend_param) {
        this.extend_param = extend_param;
    }

    public String getDetail_data() {
        return detail_data;
    }

    public void setDetail_data(String detail_data) {
        this.detail_data = detail_data;
    }
}
